package transferobject;

import java.io.Serializable;

/**
 * Transfer Object class for User
 * @author Ilya_Poliakov
 */
public class User implements Serializable {

	/**
	 * Serial version UID
	 */
	private static final long serialVersionUID = 3240792941116609155L;

	/**
	 * user billing address
	 */
	private final String billingAddress;

	/**
	 * user full name
	 */
	private final String fullName;

	/**
	 * user login
	 */
	private final String login;

	/**
	 * user password
	 */
	private final String password;

	/**
	 * user ID
	 */
	private final int userId;

	/**
	 * Create new user transfer object
	 * @param userId user id
	 * @param fullName	user full name
	 * @param billingAddress user address
	 * @param login user login
	 * @param password user password
	 */
	public User(int userId, String fullName, String billingAddress, String login,
			String password) {
		super();
		this.billingAddress = billingAddress;
		this.fullName = fullName;
		this.login = login;
		this.password = password;
		this.userId = userId;
	}

	/**
	 * return the billingAddress
	 * @return the billingAddress
	 */
	public String getBillingAddress() {
		return billingAddress;
	}

	/**
	 * return the fullName
	 * @return the fullName
	 */
	public String getFullName() {
		return fullName;
	}

	/**
	 * return the login
	 * @return the login
	 */
	public String getLogin() {
		return login;
	}

	/**
	 * return the password
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * return the userId
	 * @return the userId
	 */
	public int getUserId() {
		return userId;
	}


}
